package leetcode.code1905;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1905 implements IDebug {

	public abstract int countSubIslands(int[][] grid1, int[][] grid2);

	@Override
	public void debug1() {
		int r = this.countSubIslands(HelpDebug.str2array1("[[1,1,1,0,0],[0,1,1,1,1],[0,0,0,0,0],[1,0,0,0,0],[1,1,0,1,1]]"),
				HelpDebug.str2array1("[[1,1,1,0,0],[0,0,1,1,1],[0,1,0,0,0],[1,0,1,1,0],[0,1,0,1,0]]"));
		int e = 3;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.countSubIslands(HelpDebug.str2array1("[[1,0,1,0,1],[1,1,1,1,1],[0,0,0,0,0],[1,1,1,1,1],[1,0,1,0,1]]"),
				HelpDebug.str2array1("[[0,0,0,0,0],[1,1,1,1,1],[0,1,0,1,0],[0,1,0,1,0],[1,0,0,0,1]]"));
		int e = 2;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}



}
